home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / ViewCell / CellCursorCollector.h < prev    next >
Text File  |  2000-06-23  |  645b  |  38 lines

  1. // CellCursorCollector.h
  2.  
  3. #ifndef CellCursorCollector_h
  4. #define CellCursorCollector_h
  5.  
  6. #ifndef CellVisitor_h
  7. #include "CellVisitor.h"
  8. #endif
  9. #ifndef Assert_h
  10. #include "Assert.h"
  11. #endif
  12.  
  13. class MouseEvent;
  14. class RegionObject;
  15. class CursorObject;
  16.  
  17. class CellCursorCollector: public CellVisitor
  18.   {
  19.     private:
  20.         const MouseEvent& event;
  21.         RegionObject& region;
  22.         const CursorObject *cursor;
  23.     
  24.     public:
  25.         CellCursorCollector( const MouseEvent& theEvent,
  26.                                     RegionObject& theRegion );
  27.  
  28.         virtual void Visit( ViewCell&, const Canvas& );
  29.         
  30.         const CursorObject& Cursor() const
  31.           {
  32.             Assert( cursor != 0 );
  33.             return *cursor;
  34.           }
  35.   };
  36.  
  37. #endif
  38.